//
//  WCNConstantsCDStore.h
//  WCN
//
//  Created by 杨鑫 on 15/6/11.
//  Copyright (c) 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
//
#import "NSManagedObject+SetValueWithDictionary.h"
//
#import "Hospital.h"
#import "Ward.h"
#import "NurseDetail.h"
#import "CareCase.h"

@interface WCNConstantsCDStore : NSObject

#pragma mark - Create

+ (instancetype)shareStore;

#pragma mark - Hospital and ward

/**
 *  保存医院列表
 *
 *  @param data NSArray
 *
 *  @return NSArray
 */
- (NSArray *)createHospitals:(NSArray *)data;

/**
 *  查询所有医院
 *
 *  @return NSArray
 */
- (NSArray *)getHospitals;

/**
 *  保存某医院的病区列表
 *
 *  @param data       NSArray
 *  @param hospitalId NSString
 *
 *  @return NSArray
 */
- (NSArray *)createWards:(NSArray *)data hospital:(NSString *)hospitalId;

/**
 *  根据医院查询病区
 *
 *  @param hospitalId NSString
 *
 *  @return NSArray
 */
- (NSArray *)getWardsByhospital:(NSString *)hospitalId;

/**
 *  医院护理时管理
 */
- (NSArray *)createNurses:(NSArray *)data hospital:(NSString *)hospitalId;
- (NSArray *)getNursesByhospital:(NSString *)hospitalId;

#pragma mark - CareCase

- (NSArray *)createCareCases:(NSArray *)data;

- (NSArray *)getCareCases;

#pragma mark - Others

/**
 *  保存数据到文件
 *
 *  @return BOOL
 */
- (BOOL)saveData;

/**
 *  清空所有数据
 */
- (void)removeAllData;

@end
